\section{mpgl\-\_\-engine\-:\-:application\-:\-:net Namespace Reference}
\label{namespacempgl__engine_1_1application_1_1net}\index{mpgl\-\_\-engine\-::application\-::net@{mpgl\-\_\-engine\-::application\-::net}}


Application level, Network Manager.  


\subsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
class {\bf Network\-Defines}
\begin{DoxyCompactList}\small\item\em This is a static class that contains constant variables and typedefs used by the Network code. \end{DoxyCompactList}\item 
class {\bf Network\-Manager}
\begin{DoxyCompactList}\small\item\em The main Network Manager responsible for managing the boost I\-O Service as well as the current Net\-Session. \end{DoxyCompactList}\item 
class {\bf Tcp\-Client}
\begin{DoxyCompactList}\small\item\em This class represents a T\-C\-P Client, inheriting from the T\-C\-P Session base class. The Client variant is allowed a single connection and has the ability to search for, resolve, and connect to servers. \end{DoxyCompactList}\item 
class {\bf Tcp\-Connection}
\begin{DoxyCompactList}\small\item\em This class represents a single T\-C\-P Connection. A single T\-C\-P Connection manages a socket connected to another I\-P endpoint. \end{DoxyCompactList}\item 
class {\bf Tcp\-Data}
\begin{DoxyCompactList}\small\item\em This class represents a T\-C\-P Data handler. It inherits from Event and is used to send and receive data. \end{DoxyCompactList}\item 
class {\bf Tcp\-Error}
\item 
class {\bf Tcp\-Server}
\begin{DoxyCompactList}\small\item\em This class represents a T\-C\-P Server, inheriting from the T\-C\-P Session base class. The Server variant is allowed multiple connections and has the ability to listen for incoming connections. \end{DoxyCompactList}\item 
class {\bf Tcp\-Session}
\begin{DoxyCompactList}\small\item\em This class represents a T\-C\-P Session in which one ore more T\-C\-P Connections are held and managed. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
typedef unsigned int {\bf uint}
\item 
typedef unsigned short {\bf ushort}
\item 
typedef boost\-::shared\-\_\-ptr\\*
$<$ {\bf Tcp\-Connection} $>$ {\bf sp\-Tcp\-Connection}
\end{DoxyCompactItemize}
\subsection*{Enumerations}
\begin{DoxyCompactItemize}
\item 
enum {\bf Tcp\-Client\-Connection\-Mode} \{ {\bf Tcp\-Client\-Connection\-Mode\-::\-D\-I\-S\-C\-O\-N\-N\-E\-C\-T\-E\-D} = 0x00, 
{\bf Tcp\-Client\-Connection\-Mode\-::\-C\-O\-N\-N\-E\-C\-T\-I\-N\-G} = 0x01, 
{\bf Tcp\-Client\-Connection\-Mode\-::\-C\-O\-N\-N\-E\-C\-T\-E\-D} = 0x02, 
{\bf U\-N\-K\-N\-O\-W\-N} = 0x\-F\-F
 \}
\item 
enum {\bf Tcp\-Connection\-State} \-: char \{ \\*
{\bf Tcp\-Connection\-State\-::\-I\-D\-L\-E} = 0x00, 
{\bf Tcp\-Connection\-State\-::\-W\-R\-I\-T\-I\-N\-G} = 0x01, 
{\bf Tcp\-Connection\-State\-::\-R\-E\-A\-D\-I\-N\-G} = 0x02, 
{\bf Tcp\-Connection\-State\-::\-I\-N\-P\-U\-T\-\_\-\-R\-E\-A\-D\-Y} = 0x04, 
\\*
{\bf Tcp\-Connection\-State\-::\-O\-U\-T\-P\-U\-T\-\_\-\-R\-E\-A\-D\-Y} = 0x08, 
{\bf U\-N\-K\-N\-O\-W\-N} = 0x\-F\-F
 \}
\item 
enum {\bf Tcp\-Data\-State} \{ {\bf Tcp\-Data\-State\-::\-E\-M\-P\-T\-Y} = 0x00, 
{\bf Tcp\-Data\-State\-::\-R\-E\-A\-D\-Y} = 0x01, 
{\bf U\-N\-K\-N\-O\-W\-N} = 0x\-F\-F
 \}
\item 
enum {\bf Tcp\-Session\-Type} \{ \\*
{\bf C\-L\-I\-E\-N\-T} = 0x00, 
{\bf S\-E\-R\-V\-E\-R} = 0x01, 
{\bf H\-O\-S\-T} = 0x02, 
{\bf U\-N\-K\-N\-O\-W\-N} = 0x\-F\-F, 
\\*
{\bf U\-N\-K\-N\-O\-W\-N} = 0x\-F\-F, 
{\bf U\-N\-K\-N\-O\-W\-N} = 0x\-F\-F, 
{\bf U\-N\-K\-N\-O\-W\-N} = 0x\-F\-F
 \}
\begin{DoxyCompactList}\small\item\em Enumeration representing a T\-C\-P session type. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
{\bf Tcp\-Connection\-State} {\bf operator$|$} ({\bf Tcp\-Connection\-State} a, {\bf Tcp\-Connection\-State} b)
\item 
{\bf Tcp\-Connection\-State} {\bf operator\&} ({\bf Tcp\-Connection\-State} a, {\bf Tcp\-Connection\-State} b)
\item 
{\bf Tcp\-Connection\-State} {\bf operator$\sim$} ({\bf Tcp\-Connection\-State} a)
\item 
{\bf Tcp\-Connection\-State} {\bf operator$^\wedge$} ({\bf Tcp\-Connection\-State} a, {\bf Tcp\-Connection\-State} b)
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Application level, Network Manager. 

\subsection{Typedef Documentation}
\index{mpgl\-\_\-engine\-::application\-::net@{mpgl\-\_\-engine\-::application\-::net}!sp\-Tcp\-Connection@{sp\-Tcp\-Connection}}
\index{sp\-Tcp\-Connection@{sp\-Tcp\-Connection}!mpgl_engine::application::net@{mpgl\-\_\-engine\-::application\-::net}}
\subsubsection[{sp\-Tcp\-Connection}]{\setlength{\rightskip}{0pt plus 5cm}typedef boost\-::shared\-\_\-ptr$<${\bf Tcp\-Connection}$>$ {\bf mpgl\-\_\-engine\-::application\-::net\-::sp\-Tcp\-Connection}}\label{namespacempgl__engine_1_1application_1_1net_a8ecb4a0e61a56e5ed42768e6b98e0e07}


Definition at line 170 of file Tcp\-Connection.\-h.

\index{mpgl\-\_\-engine\-::application\-::net@{mpgl\-\_\-engine\-::application\-::net}!uint@{uint}}
\index{uint@{uint}!mpgl_engine::application::net@{mpgl\-\_\-engine\-::application\-::net}}
\subsubsection[{uint}]{\setlength{\rightskip}{0pt plus 5cm}typedef unsigned int {\bf mpgl\-\_\-engine\-::application\-::net\-::uint}}\label{namespacempgl__engine_1_1application_1_1net_a6f801167a4c4fb22a9609ba3eebc3bf4}
Simple typedef for unsigned integers. 

Definition at line 81 of file Network\-Defines.\-h.

\index{mpgl\-\_\-engine\-::application\-::net@{mpgl\-\_\-engine\-::application\-::net}!ushort@{ushort}}
\index{ushort@{ushort}!mpgl_engine::application::net@{mpgl\-\_\-engine\-::application\-::net}}
\subsubsection[{ushort}]{\setlength{\rightskip}{0pt plus 5cm}typedef unsigned short {\bf mpgl\-\_\-engine\-::application\-::net\-::ushort}}\label{namespacempgl__engine_1_1application_1_1net_a19844a697ebfc3e154bc1a317145118e}
Simple typedef for unsigned shorts. 

Definition at line 83 of file Network\-Defines.\-h.



\subsection{Enumeration Type Documentation}
\index{mpgl\-\_\-engine\-::application\-::net@{mpgl\-\_\-engine\-::application\-::net}!Tcp\-Client\-Connection\-Mode@{Tcp\-Client\-Connection\-Mode}}
\index{Tcp\-Client\-Connection\-Mode@{Tcp\-Client\-Connection\-Mode}!mpgl_engine::application::net@{mpgl\-\_\-engine\-::application\-::net}}
\subsubsection[{Tcp\-Client\-Connection\-Mode}]{\setlength{\rightskip}{0pt plus 5cm}enum {\bf mpgl\-\_\-engine\-::application\-::net\-::\-Tcp\-Client\-Connection\-Mode}\hspace{0.3cm}{\ttfamily [strong]}}\label{namespacempgl__engine_1_1application_1_1net_a924d1d7a7ff1f4a5bd68f60accf0b90d}
\begin{Desc}
\item[Enumerator]\par
\begin{description}
\index{D\-I\-S\-C\-O\-N\-N\-E\-C\-T\-E\-D@{D\-I\-S\-C\-O\-N\-N\-E\-C\-T\-E\-D}!mpgl\-\_\-engine\-::application\-::net@{mpgl\-\_\-engine\-::application\-::net}}\index{mpgl\-\_\-engine\-::application\-::net@{mpgl\-\_\-engine\-::application\-::net}!D\-I\-S\-C\-O\-N\-N\-E\-C\-T\-E\-D@{D\-I\-S\-C\-O\-N\-N\-E\-C\-T\-E\-D}}\item[{\em 
D\-I\-S\-C\-O\-N\-N\-E\-C\-T\-E\-D\label{namespacempgl__engine_1_1application_1_1net_a924d1d7a7ff1f4a5bd68f60accf0b90da99c8ce56e7ab246445d3b134724428f3}
}]\index{C\-O\-N\-N\-E\-C\-T\-I\-N\-G@{C\-O\-N\-N\-E\-C\-T\-I\-N\-G}!mpgl\-\_\-engine\-::application\-::net@{mpgl\-\_\-engine\-::application\-::net}}\index{mpgl\-\_\-engine\-::application\-::net@{mpgl\-\_\-engine\-::application\-::net}!C\-O\-N\-N\-E\-C\-T\-I\-N\-G@{C\-O\-N\-N\-E\-C\-T\-I\-N\-G}}\item[{\em 
C\-O\-N\-N\-E\-C\-T\-I\-N\-G\label{namespacempgl__engine_1_1application_1_1net_a924d1d7a7ff1f4a5bd68f60accf0b90da9a14f95e151eec641316e7c784ce832d}
}]\index{C\-O\-N\-N\-E\-C\-T\-E\-D@{C\-O\-N\-N\-E\-C\-T\-E\-D}!mpgl\-\_\-engine\-::application\-::net@{mpgl\-\_\-engine\-::application\-::net}}\index{mpgl\-\_\-engine\-::application\-::net@{mpgl\-\_\-engine\-::application\-::net}!C\-O\-N\-N\-E\-C\-T\-E\-D@{C\-O\-N\-N\-E\-C\-T\-E\-D}}\item[{\em 
C\-O\-N\-N\-E\-C\-T\-E\-D\label{namespacempgl__engine_1_1application_1_1net_a924d1d7a7ff1f4a5bd68f60accf0b90daa5afd6edd5336d91316964e493936858}
}]\index{U\-N\-K\-N\-O\-W\-N@{U\-N\-K\-N\-O\-W\-N}!mpgl\-\_\-engine\-::application\-::net@{mpgl\-\_\-engine\-::application\-::net}}\index{mpgl\-\_\-engine\-::application\-::net@{mpgl\-\_\-engine\-::application\-::net}!U\-N\-K\-N\-O\-W\-N@{U\-N\-K\-N\-O\-W\-N}}\item[{\em 
U\-N\-K\-N\-O\-W\-N\label{namespacempgl__engine_1_1application_1_1net_a2eba96f552541552fab9e76530dd45c5a696b031073e74bf2cb98e5ef201d4aa3}
}]\end{description}
\end{Desc}


Definition at line 38 of file Tcp\-Client.\-h.


\begin{DoxyCode}
39     \{
41         DISCONNECTED = 0x00,
43         CONNECTING = 0x01,
45         CONNECTED = 0x02,
47         UNKNOWN = 0xFF
48     \};
\end{DoxyCode}
\index{mpgl\-\_\-engine\-::application\-::net@{mpgl\-\_\-engine\-::application\-::net}!Tcp\-Connection\-State@{Tcp\-Connection\-State}}
\index{Tcp\-Connection\-State@{Tcp\-Connection\-State}!mpgl_engine::application::net@{mpgl\-\_\-engine\-::application\-::net}}
\subsubsection[{Tcp\-Connection\-State}]{\setlength{\rightskip}{0pt plus 5cm}enum {\bf mpgl\-\_\-engine\-::application\-::net\-::\-Tcp\-Connection\-State} \-: char\hspace{0.3cm}{\ttfamily [strong]}}\label{namespacempgl__engine_1_1application_1_1net_a5129a3166707d12587ceb14093024709}
\begin{Desc}
\item[Enumerator]\par
\begin{description}
\index{I\-D\-L\-E@{I\-D\-L\-E}!mpgl\-\_\-engine\-::application\-::net@{mpgl\-\_\-engine\-::application\-::net}}\index{mpgl\-\_\-engine\-::application\-::net@{mpgl\-\_\-engine\-::application\-::net}!I\-D\-L\-E@{I\-D\-L\-E}}\item[{\em 
I\-D\-L\-E\label{namespacempgl__engine_1_1application_1_1net_a5129a3166707d12587ceb14093024709aa5daf7f2ebbba4975d61dab1c40188c7}
}]\index{W\-R\-I\-T\-I\-N\-G@{W\-R\-I\-T\-I\-N\-G}!mpgl\-\_\-engine\-::application\-::net@{mpgl\-\_\-engine\-::application\-::net}}\index{mpgl\-\_\-engine\-::application\-::net@{mpgl\-\_\-engine\-::application\-::net}!W\-R\-I\-T\-I\-N\-G@{W\-R\-I\-T\-I\-N\-G}}\item[{\em 
W\-R\-I\-T\-I\-N\-G\label{namespacempgl__engine_1_1application_1_1net_a5129a3166707d12587ceb14093024709aa8ae3f8747543dc53054e6ccbb5fcb1b}
}]\index{R\-E\-A\-D\-I\-N\-G@{R\-E\-A\-D\-I\-N\-G}!mpgl\-\_\-engine\-::application\-::net@{mpgl\-\_\-engine\-::application\-::net}}\index{mpgl\-\_\-engine\-::application\-::net@{mpgl\-\_\-engine\-::application\-::net}!R\-E\-A\-D\-I\-N\-G@{R\-E\-A\-D\-I\-N\-G}}\item[{\em 
R\-E\-A\-D\-I\-N\-G\label{namespacempgl__engine_1_1application_1_1net_a5129a3166707d12587ceb14093024709ac095dae5b00525bc0e6ad76117ff5cdb}
}]\index{I\-N\-P\-U\-T\-\_\-\-R\-E\-A\-D\-Y@{I\-N\-P\-U\-T\-\_\-\-R\-E\-A\-D\-Y}!mpgl\-\_\-engine\-::application\-::net@{mpgl\-\_\-engine\-::application\-::net}}\index{mpgl\-\_\-engine\-::application\-::net@{mpgl\-\_\-engine\-::application\-::net}!I\-N\-P\-U\-T\-\_\-\-R\-E\-A\-D\-Y@{I\-N\-P\-U\-T\-\_\-\-R\-E\-A\-D\-Y}}\item[{\em 
I\-N\-P\-U\-T\-\_\-\-R\-E\-A\-D\-Y\label{namespacempgl__engine_1_1application_1_1net_a5129a3166707d12587ceb14093024709ad47ac449658fcc0ea2b8621ced7a0620}
}]\index{O\-U\-T\-P\-U\-T\-\_\-\-R\-E\-A\-D\-Y@{O\-U\-T\-P\-U\-T\-\_\-\-R\-E\-A\-D\-Y}!mpgl\-\_\-engine\-::application\-::net@{mpgl\-\_\-engine\-::application\-::net}}\index{mpgl\-\_\-engine\-::application\-::net@{mpgl\-\_\-engine\-::application\-::net}!O\-U\-T\-P\-U\-T\-\_\-\-R\-E\-A\-D\-Y@{O\-U\-T\-P\-U\-T\-\_\-\-R\-E\-A\-D\-Y}}\item[{\em 
O\-U\-T\-P\-U\-T\-\_\-\-R\-E\-A\-D\-Y\label{namespacempgl__engine_1_1application_1_1net_a5129a3166707d12587ceb14093024709a048fedf9d263d2457290f4f62c9333aa}
}]\index{U\-N\-K\-N\-O\-W\-N@{U\-N\-K\-N\-O\-W\-N}!mpgl\-\_\-engine\-::application\-::net@{mpgl\-\_\-engine\-::application\-::net}}\index{mpgl\-\_\-engine\-::application\-::net@{mpgl\-\_\-engine\-::application\-::net}!U\-N\-K\-N\-O\-W\-N@{U\-N\-K\-N\-O\-W\-N}}\item[{\em 
U\-N\-K\-N\-O\-W\-N\label{namespacempgl__engine_1_1application_1_1net_a2eba96f552541552fab9e76530dd45c5a696b031073e74bf2cb98e5ef201d4aa3}
}]\end{description}
\end{Desc}


Definition at line 40 of file Tcp\-Connection.\-h.


\begin{DoxyCode}
40                                   : \textcolor{keywordtype}{char}
41     \{
42         IDLE                = 0x00,
43 
44         WRITING             = 0x01,
45         READING             = 0x02,
46 
47         INPUT_READY         = 0x04,
48         OUTPUT_READY        = 0x08,
49 
50         UNKNOWN             = 0xFF
51 
52     \};
\end{DoxyCode}
\index{mpgl\-\_\-engine\-::application\-::net@{mpgl\-\_\-engine\-::application\-::net}!Tcp\-Data\-State@{Tcp\-Data\-State}}
\index{Tcp\-Data\-State@{Tcp\-Data\-State}!mpgl_engine::application::net@{mpgl\-\_\-engine\-::application\-::net}}
\subsubsection[{Tcp\-Data\-State}]{\setlength{\rightskip}{0pt plus 5cm}enum {\bf mpgl\-\_\-engine\-::application\-::net\-::\-Tcp\-Data\-State}\hspace{0.3cm}{\ttfamily [strong]}}\label{namespacempgl__engine_1_1application_1_1net_a9826e4388bcb22fe8734bc227b7f3d38}
\begin{Desc}
\item[Enumerator]\par
\begin{description}
\index{E\-M\-P\-T\-Y@{E\-M\-P\-T\-Y}!mpgl\-\_\-engine\-::application\-::net@{mpgl\-\_\-engine\-::application\-::net}}\index{mpgl\-\_\-engine\-::application\-::net@{mpgl\-\_\-engine\-::application\-::net}!E\-M\-P\-T\-Y@{E\-M\-P\-T\-Y}}\item[{\em 
E\-M\-P\-T\-Y\label{namespacempgl__engine_1_1application_1_1net_a9826e4388bcb22fe8734bc227b7f3d38aba2b45bdc11e2a4a6e86aab2ac693cbb}
}]\index{R\-E\-A\-D\-Y@{R\-E\-A\-D\-Y}!mpgl\-\_\-engine\-::application\-::net@{mpgl\-\_\-engine\-::application\-::net}}\index{mpgl\-\_\-engine\-::application\-::net@{mpgl\-\_\-engine\-::application\-::net}!R\-E\-A\-D\-Y@{R\-E\-A\-D\-Y}}\item[{\em 
R\-E\-A\-D\-Y\label{namespacempgl__engine_1_1application_1_1net_a9826e4388bcb22fe8734bc227b7f3d38a2baa69eafc7204f3bd8648eba580c489}
}]\index{U\-N\-K\-N\-O\-W\-N@{U\-N\-K\-N\-O\-W\-N}!mpgl\-\_\-engine\-::application\-::net@{mpgl\-\_\-engine\-::application\-::net}}\index{mpgl\-\_\-engine\-::application\-::net@{mpgl\-\_\-engine\-::application\-::net}!U\-N\-K\-N\-O\-W\-N@{U\-N\-K\-N\-O\-W\-N}}\item[{\em 
U\-N\-K\-N\-O\-W\-N\label{namespacempgl__engine_1_1application_1_1net_a2eba96f552541552fab9e76530dd45c5a696b031073e74bf2cb98e5ef201d4aa3}
}]\end{description}
\end{Desc}


Definition at line 32 of file Tcp\-Data.\-h.


\begin{DoxyCode}
33     \{
34         EMPTY   = 0x00,
35         READY   = 0x01,
36         UNKNOWN = 0xFF
37     \};
\end{DoxyCode}
\index{mpgl\-\_\-engine\-::application\-::net@{mpgl\-\_\-engine\-::application\-::net}!Tcp\-Session\-Type@{Tcp\-Session\-Type}}
\index{Tcp\-Session\-Type@{Tcp\-Session\-Type}!mpgl_engine::application::net@{mpgl\-\_\-engine\-::application\-::net}}
\subsubsection[{Tcp\-Session\-Type}]{\setlength{\rightskip}{0pt plus 5cm}enum {\bf mpgl\-\_\-engine\-::application\-::net\-::\-Tcp\-Session\-Type}}\label{namespacempgl__engine_1_1application_1_1net_a2eba96f552541552fab9e76530dd45c5}


Enumeration representing a T\-C\-P session type. 





\begin{DoxyAuthor}{Author}
Mitchell Pell \subsubsection*{01/04/2014 }
\end{DoxyAuthor}
\begin{Desc}
\item[Enumerator]\par
\begin{description}
\index{C\-L\-I\-E\-N\-T@{C\-L\-I\-E\-N\-T}!mpgl\-\_\-engine\-::application\-::net@{mpgl\-\_\-engine\-::application\-::net}}\index{mpgl\-\_\-engine\-::application\-::net@{mpgl\-\_\-engine\-::application\-::net}!C\-L\-I\-E\-N\-T@{C\-L\-I\-E\-N\-T}}\item[{\em 
C\-L\-I\-E\-N\-T\label{namespacempgl__engine_1_1application_1_1net_a2eba96f552541552fab9e76530dd45c5aeef0574a2f491db586f07a3e6ae1fca4}
}]T\-C\-P Client \index{S\-E\-R\-V\-E\-R@{S\-E\-R\-V\-E\-R}!mpgl\-\_\-engine\-::application\-::net@{mpgl\-\_\-engine\-::application\-::net}}\index{mpgl\-\_\-engine\-::application\-::net@{mpgl\-\_\-engine\-::application\-::net}!S\-E\-R\-V\-E\-R@{S\-E\-R\-V\-E\-R}}\item[{\em 
S\-E\-R\-V\-E\-R\label{namespacempgl__engine_1_1application_1_1net_a2eba96f552541552fab9e76530dd45c5ae1a7b9cb960042b51f20bca6a281060e}
}]T\-C\-P Server \index{H\-O\-S\-T@{H\-O\-S\-T}!mpgl\-\_\-engine\-::application\-::net@{mpgl\-\_\-engine\-::application\-::net}}\index{mpgl\-\_\-engine\-::application\-::net@{mpgl\-\_\-engine\-::application\-::net}!H\-O\-S\-T@{H\-O\-S\-T}}\item[{\em 
H\-O\-S\-T\label{namespacempgl__engine_1_1application_1_1net_a2eba96f552541552fab9e76530dd45c5afbf86a02458c8336df6426bbf3c804c8}
}]T\-C\-P Host \index{U\-N\-K\-N\-O\-W\-N@{U\-N\-K\-N\-O\-W\-N}!mpgl\-\_\-engine\-::application\-::net@{mpgl\-\_\-engine\-::application\-::net}}\index{mpgl\-\_\-engine\-::application\-::net@{mpgl\-\_\-engine\-::application\-::net}!U\-N\-K\-N\-O\-W\-N@{U\-N\-K\-N\-O\-W\-N}}\item[{\em 
U\-N\-K\-N\-O\-W\-N\label{namespacempgl__engine_1_1application_1_1net_a2eba96f552541552fab9e76530dd45c5a417cce4729710aeaee016b5912487b7c}
}]Unknown Type \index{U\-N\-K\-N\-O\-W\-N@{U\-N\-K\-N\-O\-W\-N}!mpgl\-\_\-engine\-::application\-::net@{mpgl\-\_\-engine\-::application\-::net}}\index{mpgl\-\_\-engine\-::application\-::net@{mpgl\-\_\-engine\-::application\-::net}!U\-N\-K\-N\-O\-W\-N@{U\-N\-K\-N\-O\-W\-N}}\item[{\em 
U\-N\-K\-N\-O\-W\-N\label{namespacempgl__engine_1_1application_1_1net_a2eba96f552541552fab9e76530dd45c5a696b031073e74bf2cb98e5ef201d4aa3}
}]\index{U\-N\-K\-N\-O\-W\-N@{U\-N\-K\-N\-O\-W\-N}!mpgl\-\_\-engine\-::application\-::net@{mpgl\-\_\-engine\-::application\-::net}}\index{mpgl\-\_\-engine\-::application\-::net@{mpgl\-\_\-engine\-::application\-::net}!U\-N\-K\-N\-O\-W\-N@{U\-N\-K\-N\-O\-W\-N}}\item[{\em 
U\-N\-K\-N\-O\-W\-N\label{namespacempgl__engine_1_1application_1_1net_a2eba96f552541552fab9e76530dd45c5a696b031073e74bf2cb98e5ef201d4aa3}
}]\index{U\-N\-K\-N\-O\-W\-N@{U\-N\-K\-N\-O\-W\-N}!mpgl\-\_\-engine\-::application\-::net@{mpgl\-\_\-engine\-::application\-::net}}\index{mpgl\-\_\-engine\-::application\-::net@{mpgl\-\_\-engine\-::application\-::net}!U\-N\-K\-N\-O\-W\-N@{U\-N\-K\-N\-O\-W\-N}}\item[{\em 
U\-N\-K\-N\-O\-W\-N\label{namespacempgl__engine_1_1application_1_1net_a2eba96f552541552fab9e76530dd45c5a696b031073e74bf2cb98e5ef201d4aa3}
}]\end{description}
\end{Desc}


Definition at line 46 of file Tcp\-Session.\-h.


\begin{DoxyCode}
47     \{
49         CLIENT  = 0x00,
51         SERVER  = 0x01,
53         HOST    = 0x02,
55         UNKNOWN = 0xFF
56     \};
\end{DoxyCode}


\subsection{Function Documentation}
\index{mpgl\-\_\-engine\-::application\-::net@{mpgl\-\_\-engine\-::application\-::net}!operator\&@{operator\&}}
\index{operator\&@{operator\&}!mpgl_engine::application::net@{mpgl\-\_\-engine\-::application\-::net}}
\subsubsection[{operator\&}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Tcp\-Connection\-State} mpgl\-\_\-engine\-::application\-::net\-::operator\& (
\begin{DoxyParamCaption}
\item[{Tcp\-Connection\-State}]{a, }
\item[{Tcp\-Connection\-State}]{b}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}\label{namespacempgl__engine_1_1application_1_1net_afe92136111eede5536f0283d1e97575b}
Tcp\-Connection\-State bitwise and operator 

Definition at line 60 of file Tcp\-Connection.\-h.


\begin{DoxyCode}
61                                                    \{
62         \textcolor{keywordflow}{return} \textcolor{keyword}{static\_cast<}TcpConnectionState\textcolor{keyword}{>}(
63             \textcolor{keyword}{static\_cast<}\textcolor{keywordtype}{int}\textcolor{keyword}{>}(a) & 
64             static\_cast<int>(b));\}
\end{DoxyCode}
\index{mpgl\-\_\-engine\-::application\-::net@{mpgl\-\_\-engine\-::application\-::net}!operator$^\wedge$@{operator$^\wedge$}}
\index{operator$^\wedge$@{operator$^\wedge$}!mpgl_engine::application::net@{mpgl\-\_\-engine\-::application\-::net}}
\subsubsection[{operator$^\wedge$}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Tcp\-Connection\-State} mpgl\-\_\-engine\-::application\-::net\-::operator$^\wedge$ (
\begin{DoxyParamCaption}
\item[{Tcp\-Connection\-State}]{a, }
\item[{Tcp\-Connection\-State}]{b}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}\label{namespacempgl__engine_1_1application_1_1net_ac3e10967b28d21c73ff202ab98b63c2f}
Tcp\-Connection\-State xor operator 

Definition at line 71 of file Tcp\-Connection.\-h.


\begin{DoxyCode}
72                                                    \{
73         \textcolor{keywordflow}{return} \textcolor{keyword}{static\_cast<}TcpConnectionState\textcolor{keyword}{>}(
74             \textcolor{keyword}{static\_cast<}\textcolor{keywordtype}{int}\textcolor{keyword}{>}(a) ^ 
75             static\_cast<int>(b));\}
\end{DoxyCode}
\index{mpgl\-\_\-engine\-::application\-::net@{mpgl\-\_\-engine\-::application\-::net}!operator$|$@{operator$|$}}
\index{operator$|$@{operator$|$}!mpgl_engine::application::net@{mpgl\-\_\-engine\-::application\-::net}}
\subsubsection[{operator$|$}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Tcp\-Connection\-State} mpgl\-\_\-engine\-::application\-::net\-::operator$|$ (
\begin{DoxyParamCaption}
\item[{Tcp\-Connection\-State}]{a, }
\item[{Tcp\-Connection\-State}]{b}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}\label{namespacempgl__engine_1_1application_1_1net_adb04e1c0fe0b49cb9fb4570cf6a5a5d9}
Tcp\-Connection\-State bitwise or operator 

Definition at line 54 of file Tcp\-Connection.\-h.


\begin{DoxyCode}
55                                                    \{
56         \textcolor{keywordflow}{return} \textcolor{keyword}{static\_cast<}TcpConnectionState\textcolor{keyword}{>}(
57             \textcolor{keyword}{static\_cast<}\textcolor{keywordtype}{int}\textcolor{keyword}{>}(a) | 
58             static\_cast<int>(b));\}
\end{DoxyCode}
\index{mpgl\-\_\-engine\-::application\-::net@{mpgl\-\_\-engine\-::application\-::net}!operator$\sim$@{operator$\sim$}}
\index{operator$\sim$@{operator$\sim$}!mpgl_engine::application::net@{mpgl\-\_\-engine\-::application\-::net}}
\subsubsection[{operator$\sim$}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Tcp\-Connection\-State} mpgl\-\_\-engine\-::application\-::net\-::operator$\sim$ (
\begin{DoxyParamCaption}
\item[{Tcp\-Connection\-State}]{a}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}\label{namespacempgl__engine_1_1application_1_1net_a940783fbedc139a1d41414a098ff6135}
Tcp\-Connection\-State bitwise not operator 

Definition at line 66 of file Tcp\-Connection.\-h.


\begin{DoxyCode}
67                              \{
68         \textcolor{keywordflow}{return} \textcolor{keyword}{static\_cast<}TcpConnectionState\textcolor{keyword}{>}(
69             ~static\_cast<\textcolor{keywordtype}{int}>(a));\}
\end{DoxyCode}
